package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.spark.incoicings.dao.DictTypeMapper;
import com.spark.incoicings.service.DictTypeService;

import com.spark.incoicings.vo.DictVO;
import com.spark.invoicings.entity.DictType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DictTypeServiceImpl extends ServiceImpl<DictTypeMapper, DictType>implements DictTypeService {

    @Resource
    private DictTypeMapper dictTypeMapper;
    @Override
    public List<DictVO> selectDict() {
        List<DictVO> dicts = dictTypeMapper.selectDict();
        return dicts;
    }

    @Override
    public List<DictVO> selectCustomerSource() {
        List<DictVO> dicts = dictTypeMapper.selectCustomerSource();
        return dicts;
    }

    @Override
    public List<DictVO> selectCustomerMethod() {
        List<DictVO> dicts = dictTypeMapper.selectCustomerMethod();
        return dicts;
    }

    @Override
    public List<DictVO> selectStatus() {
        List<DictVO> status = dictTypeMapper.selectStatus();
        return status;
    }

    @Override
    public DictVO selectDictTow(Integer id) {
        DictVO dict = dictTypeMapper.selectDictTow(id);
        return dict;
    }

    @Override
    public List<DictVO> selectState() {
        List<DictVO> state = dictTypeMapper.selectState();
        return state;
    }
    @Override
    public List<DictVO> selectShipment(String type) {
        List<DictVO> shipment = dictTypeMapper.selectShipment(type);
        return shipment;
    }

    @Override
    public List<DictVO> selectShippingAll() {
        List<DictVO> selected = dictTypeMapper.selectShippingAll();
        return selected;
    }

    @Override
    public DictVO selectShipping(Integer id) {
        DictVO dictVO = dictTypeMapper.selectShipping(id);
        return dictVO;
    }


    @Override
    public DictVO selectOutboundType(Integer id) {
        DictVO dictVO = dictTypeMapper.selectOutboundType(id);
        return dictVO;
    }
}
